package com.vogelsk.archangelsk.creatures;

import com.vogelsk.archangelsk.creatures.util.Direction;

public class Bullet extends GenericCreature{
	
	private static final int DEFAULT_BULLET_SIZE = 1;
	private static final int DEFAULT_BULLET_SPEED = 60;
	private Tank parent;
	
	public Bullet(int size, int x, int y, int speed, Direction direction) {
		super(size, x, y, speed, direction);
			}

	public Bullet(int x, int y, Tank parent) {
		super(DEFAULT_BULLET_SIZE, x, y, DEFAULT_BULLET_SPEED, parent.getDirection());
		this.parent = parent;
	}

	public void setParent(Tank parent) {
		this.parent = parent;
	}

	public Tank getParent() {
		return parent;
	}
}
